package com.sunxu.exercise4;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-01-21:53
 */
public class Run {
    public static void main(String[] args) {
        try {
            MyThread2 thread = new MyThread2();
            thread.start();
            Thread.sleep(1000);
            thread.interrupt();
            System.out.println("是否停止1?=" + thread.interrupted());
            System.out.println("是否停止2?=" + thread.interrupted());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
